package com.lancoo.ccas53.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 排课计划
 * </p>
 *
 * @author quin.song
 * @since 2024-05-20
 */
@Data
@Accessors(chain = true)
@TableName("task_info")
@ApiModel(value = "TaskInfo对象", description = "排课计划")
public class TaskInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "task_id", type = IdType.AUTO)
    private Integer taskId;

    private String schoolId;

    @ApiModelProperty("学校名字")
    private String schoolName;

    @ApiModelProperty("学期")
    private String term;

    private String termName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime termBeginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime termEndTime;

    @ApiModelProperty("课表循环天数")
    private Integer cycleDay;

    @ApiModelProperty("默认连上节次")
    private Integer defaultConnectSection;

    @ApiModelProperty("课时方案 1、全校统一设置 2、按校区设置")
    private Integer periodSet;

    @ApiModelProperty("1、统一设置 2、按天设置 3、按年级设置")
    private Integer periodMode;

    @ApiModelProperty("创建人id")
    private String createdUserId;

    private String createdUserName;

    private LocalDateTime createdTime;
}
